Link going to a particular Module/ particular LinkSet

I would like to implement a for loop for the outgoing links for the current object. The current object has links going to 2 separate module making use of the same Link Module but different Link Set.
Can any1 suggest me a method to implement this for loop for a particular module alone.

For Eg:
The below mentioned will show the links to 2 modules(with the same LinkModule but different LinkSet)
for Link in o -> "LinkModule" do {
}

What is the syntax for the for loop to a particular LinkSet alone.
Lion29 - Sat Jan 16 06:52:17 EST 2010

Re: Link going to a particular Module/ particular LinkSet
Mathias Mamsch - Sat Jan 16 17:04:29 EST 2010

The easiest way would be to check the target of the link:

for Link in o->"LinkModule" do {
string targetName = target Link
if (targetName != "xy") continue
}

 


or something like this. Regards, Mathias

 

Re: Link going to a particular Module/ particular LinkSet
Lion29 - Wed Feb 03 13:31:33 EST 2010

Mathias Mamsch - Sat Jan 16 17:04:29 EST 2010

The easiest way would be to check the target of the link:

for Link in o->"LinkModule" do {
string targetName = target Link
if (targetName != "xy") continue
}

 


or something like this. Regards, Mathias

 

Wow, as simple as that.. :-)
thanks Mathias.. :-)